<template>
   <el-container class="login-container">
        <div class="el-header">
            <h1><i class="iconfont icon-logo_zhongguodianxin"></i><span>经营预算管理系统</span></h1>
        </div>
        <div class="el-login-container">
            <div class="back"><el-button @click="$router.push({path: '/login'})" type="default" size="mini">返回</el-button></div>
            <!-- <div class="el-login-containerPic"></div> -->
            <div class="hint-wrapper">
                <div class="hint-list">
                    <h4 class="title">4A 管理员联系方式</h4>
                    <ul class="list">
                        <li class="top"><span class="num">编号</span><span class="area">本地网</span><span class="name">联系人</span><span class="tel">联系方式</span></li>
                        <li class="item" v-for="(it, i) in list" :key="i">
                            <span class="num">{{i + 1}}</span><span class="area">{{it.areaName}}</span><span class="name">{{it.userName}}</span><span class="tel">{{it.mobile}}</span>
                        </li>
                    </ul>
                </div>
                <div class="hint-tips">
                    <h4 class="title">解决方法：</h4>
                    <p class="p1">说明：账户3个月未登录时，4A安全策略会将账号冻结。</p>
                    <p class="p1">解决：联系本地 4A管理员，解锁账户后即可登录</p>
                </div>
            </div>
        </div>
    </el-container>
</template>

<script>
    import { $loginAPI } from "@/api";
    export default {
        data() {
            return {
                list: []
            }
        },
        mounted() {
            $loginAPI.getHint({}, res=> {
                console.log(res)
                if(res && res.code == 0) {
                    this.list = res.content
                }
            })
        },
        methods: {
            name() {
                
            }
        },
    }
</script>

<style lang="scss" scoped>
.login-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color:#fff;
    overflow: hidden;
    .el-header {
        height:85px;
        line-height:85px;
        h1 {
        font-size: 32px;
                .iconfont {
            font-size: 35px;
            color:#00479d;
                    display:inline-block;
                    vertical-align: middle;
                    margin-top:-2px;
                }
                span {
                    position: relative;
                    margin:0 0 0 20px;
                    padding-left:20px;
                    &:before {
                        content:"";
                        position: absolute;
                        left:0;
                        top:-2px;
                        bottom:-2px;
                        width:1px;
                        opacity: 0.5;
                        background: -moz-linear-gradient(top, #fff 0%, #bababa 50%, #fff 100%);
                        background: -webkit-gradient(linear, top, bottom, color-stop(0%,#737980), color-stop(100%,#fff));
                        background: -webkit-linear-gradient(top, #fff 0%, #bababa 50%,#fff 100%);
                        background: -o-linear-gradient(top, #fff 0%, #bababa 50%,#fff 100%);
                        background: -ms-linear-gradient(top, #fff 0%, #bababa 50%,#fff 100%);
                        background: linear-gradient(to bottom, #fff 0%, #bababa 50%,#fff 100%);
                    }
                }
        }
    }
    .el-login-container {
        position: absolute;
        left:0;
        top:85px;
        right:0;
        bottom:0;
        background: -moz-linear-gradient(top, #c1dbfe 0%, #498fe5 100%);
        background: -webkit-gradient(linear, left, right, color-stop(0%,#c1dbfe), color-stop(100%,#498fe5));
        background: -webkit-linear-gradient(left, #c1dbfe 0%,#498fe5 100%);
        background: -o-linear-gradient(left, #c1dbfe 0%,#498fe5 100%);
        background: -ms-linear-gradient(left, #c1dbfe 0%,#498fe5 100%);
        background: linear-gradient(to right, #c1dbfe 0%,#498fe5 100%);
        .el-login-containerPic {
        position: absolute;
        z-index: 1;
        left:2%;
        bottom:-8%;
        height:90%;
        width:50%;
        background: url('../../../static/image/login/login-bg.png') 10% 100% no-repeat;
        background-size: contain;
        }
        .back {
            text-align: right;
            margin-top: 10px;
            margin-right: 120px;
        }
    }
    .hint-wrapper {
        display: flex;
        margin: 20px 120px 0; 
        .hint-list {
            width: 40%;
            background-color: #fff;
            border-radius: 5px;
            padding: 20px;
            margin-right: 20px;
            .title {
                font-size: 18px;
                text-align: center;
                margin-bottom: 20px;
            }
            .list {
                max-height: 360px;
                overflow-y: scroll;
                .top {
                    background-color: #d7d7d7;
                    height: 45px;
                    line-height: 45px;
                    font-size: 14px;
                    font-weight: bold;
                    display: flex;
                }
                .top,
                .item {
                    display: flex;
                    font-size: 14px;
                    color: #666666;
                    height: 30px;
                    text-align: center;
                    align-items: center;
                    border-bottom: 1px solid #d7d7d7;
                    .num {
                        width: 40px;
                    }
                    .area {
                        width: 60px;
                    }
                    .name {
                        width: 120px;
                    }
                    .tel {
                        flex: 1;
                    }
                }
            }
           
        }
        .hint-tips {
            flex: 1;
            background-color: #fff;
            border-radius: 5px;
            text-align: center;
            padding: 20px;
            margin-left: 20px;
            .title {
                font-size: 18px;
                text-align: center;
                margin-bottom: 20px;
            }
            .p1 {
                font-size: 14px;
                margin-bottom: 20px;
            }
        }
    }
}
</style>